//2009/08/16 00:07:19
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <sstream>
#include <algorithm>

using namespace std;

class Cards
{
public:
    vector <string> deal(int numP, string deck)
    {
		vector<string> ret(numP, "");
		if(deck.size() < numP) return ret;
		for(int i=0; i<deck.size(); i++)
		{
			ret[i%numP] += deck[i];
			if(i%numP == numP-1 && deck.size()-i - 1<numP) break;
		}
		return ret;
    }
};
